<template>
  <div>
    <content-page>
      <div class="header_back_page" @click="backPage">
        <van-icon name="arrow-left" style="margin-right: 6px" />意见反馈
      </div>
      <div class="fb_warp">
        <div class="fb_warp_title">问题或意见：</div>
        <div class="fb_warp_msg">
          <textarea v-model="leaveMessage" class="fb_warp_text_msg" placeholder="请输入反馈的内容" />
        </div>
        <div class="fb_warp_title">您的手机号码：</div>
        <div class="fb_user_phone_warp">
          <input v-model="userMobile" type="number" class="fb_user_phone" placeholder="请输入您的手机号码">
        </div>
        <div class="fb_warp_title">添加图片说明：</div>
        <van-field name="uploader">
          <template #input>
            <van-uploader
              v-model="uploader"
              :max-count="9"
              :after-read="afterReadUpload"
            />
          </template>
        </van-field>
        <div class="fb_submit">提交</div>
        <div class="fb_concat_us">客服联系方式：客服微信{{ serviceWx }}</div>
      </div>
    </content-page>
  </div>
</template>

<script>
import contentPage from '../../components/content_page'
export default {
  name: 'FeedBack',
  components: { contentPage },
  data() {
    return {
      leaveMessage: '',
      uploader: [],
      userMobile: '',
      serviceWx: 'zxd5202017',
    }
  },
  computed: {},
  create() {
  },
  mounted() {
  },
  methods: {
    backPage() {
      this.$router.back(-1)
    },
    afterReadUpload() {},
  },
}
</script>

<style scoped lang="scss">
  @import "../../assets/style/base";
  .header_back_page{
    padding: pxTorem(20px) 0 pxTorem(20px) pxTorem(20px);
    font-size: pxTorem(32px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffffff;
  }
  .fb_warp{

    .fb_warp_msg{
      margin: auto;
      width: pxTorem(710px);
      .fb_warp_text_msg{
        width: pxTorem(710px);
        padding: pxTorem(30px);
        height: pxTorem(300px);
        background-color: #f9f9f9;
        color: #333333;
        font-size: pxTorem(32px);
        border-radius: pxTorem(10px);
        resize: none;
        margin: auto;
      }
    }
    .fb_user_phone_warp{
      width: pxTorem(710px);
      margin: auto;
      border: 1px solid #9f9f9f;
      border-radius: pxTorem(6px);
      .fb_user_phone{
        width: pxTorem(650px);
        display: inline-block;
        padding: pxTorem(16px) pxTorem(30px);
        outline: none;
        border: none;
        margin-left: pxTorem(20px);
        background-color: #f9f9f9;
        color: #333333;
        font-size: pxTorem(32px);
      }
    }
    .fb_submit{
      width: pxTorem(710px);
      text-align: center;
      height: pxTorem(90px);
      line-height: pxTorem(90px);
      margin: auto;
      background-color: #1296db;
      color: #ffffff;
      font-size: pxTorem(34px);
      border-radius: pxTorem(60px);
    }
    .fb_concat_us{
      padding: pxTorem(30px);
      margin-top: pxTorem(20px);
      color: #999999;
      font-size: pxTorem(30px);
    }

  }
  .fb_warp_title{
    position: relative;
    padding: pxTorem(30px);
    font-size: pxTorem(34px);
  }
  .fb_warp_title:before{
    content: '*';
    position: absolute;
    top: pxTorem(34px);
    left: pxTorem(10px);
    color: #ff0000;
    font-size: pxTorem(36px);
  }
</style>
